package com.gk.carshopsys.service;

import com.gk.carshopsys.dao.CustDao;
import com.gk.carshopsys.pojo.Cust;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustServiceImpl implements CustService {
    @Autowired
    private CustDao custDao;

    @Override
    public int addCustByList(List<Cust> list) {
        return custDao.addCustByList(list);
    }

    @Override
    public List<Cust> findCust(Cust cust) {

        return custDao.findCust(cust);
    }

    @Override
    public int addCust(Cust cust) {

        return custDao.addCust(cust);
    }

    @Override
    public int updateCust(Cust cust) {
        return custDao.updateCust(cust);
    }

    @Override
    public int delCust(List<Integer> idist) {
        return custDao.delCust(idist);
    }
}
